package com.kaifamiao.date1102;

import java.util.Random;

public class RandomTest {
	
	public static void main(String[] args) {
		
		System.out.println( Math.random() ); // [ 0 , 1 )
		
		Random x = new Random();
		int bound = 100 ; 
		System.out.println( x.nextInt( bound ) ); // [ 0 , bound )
		
		
		
	}

}
